extends ../layout

block content
	nav.navbar.navbar-inverse
		.container-fluid
			.nav-header
				button(type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false")
					span.sr-only Toggle navigation
					span.icon-bar
					span.icon-bar
					span.icon-bar
				a(class='navbar-brand' href='/all') 晴&阴
			div(class="collapse navbar-collapse" id="bs-example-navbar-collapse-1")
				ul.nav.navbar-nav
					li.active
						a(href='/') 重溯爱恨纠结
							span.sr-only (current)
					li
						a(href='/add') 书诗遗千古
	.updatehate-container
		each one in updatehate
			.updatehate-all
				form(action='/updatehate/#{one.title}',method='post',class='update-form')
					ul.add-ul
						li
							label(for='updatehatetitle') 文名:
							input(value='#{one.title}',type='text',id='updatehatetitle',name='updatehatetitle',readonly='readonly')
						li
							label(for='updatehatepoet') 诗人:
							input(value='#{one.poet}',type='text',id='updatehatepoet',name='updatehatepoet',placeholder='修改诗人名字')
						li
							label(for='updatehatesimple') 简言:
							input(value='#{one.simple}',type='text',id='updatehatesimple',name='updatehatesimple',placeholder='修改诗篇简介')
						li
							label(for='updatehatecontent',id='write') 韵章:
							textArea(id='updatehatecontent',name='updatehatecontent',placeholder='修改诗篇内容') #{one.content}
						li
							button(type='submit',class='btn btn-danger btn-lg') 确认修改了
							a(href='/showhate/#{one.title}',class='btn btn-success btn-lg',style='margin-left:20px;') 还是返回吧